import Layout from '@/layout'

const financialLayout = {
  path: '/financial',
  component: Layout,
  alwaysShow: true,
  name: 'financial',
  meta: {
    title: '财务管理',
    icon: '财务管理'
  },
  children: [{
      path: 'order',
      redirect: '/financial/order/list',
      component: () => import('@/views/order'),
      // component: () => import('@/views/order/list/index'),
      name: 'order',
      meta: {
        title: '订单管理',
        icon: '订单管理'
      },
      children: [{
          hidden: true,
          path: 'list',
          name: 'orderList',
          component: () => import('@/views/order/list/index'),
          meta: {
            title: '订单列表',
            activeMenu: '/financial/order'
          }
        },
        {
          path: 'detail',
          hidden: true,
          name: 'orderDetail',
          component: () => import('@/views/order/orderDetail'),
          meta: {
            title: '订单详情',
            activeMenu: '/financial/order'
          }
        }
      ]
    },
    {
      path: 'member',
      name: 'Member',
      // hidden: true,
      component: () => import('@/views/order/member/memberList.vue'),
      meta: {
        title: '会员管理',
        icon: '订单管理'
      },
    }
  ]
}
export default financialLayout
